﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace HelenServer.UserCenter.Dal;

[Table("Department")]
public partial class Department
{
    [Key]
    public int Id { get; set; }

    [StringLength(32)]
    [Unicode(false)]
    public string Name { get; set; } = string.Empty;

    public virtual Department? Parent { get; set; }

    public virtual User? Manager { get; set; }

    public virtual Role? Role { get; set; }
}